package com.tyf.common.config;

import com.tyf.common.util.SpringUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import com.tyf.common.util.PropertiesUtils;

/**
 * 注册 com.tyf.common Bean
 *
 * @author xd
 */
@Configuration
@Order(Ordered.HIGHEST_PRECEDENCE)
public class SpringConfiguation {
    
	/**
	 * 获取spring context 工具bean
	 * @return
	 */
	@Bean(name = "springUtils")
    public SpringUtils getSpringUtils() {
        return new SpringUtils();
    }
	
	/**
	 * 获取spring properties 工具bean
	 * @return
	 */
	@Bean(name = "propertiesUtils")
    public PropertiesUtils getPropertiesUtils() {
        return new PropertiesUtils();
    }
}
